<?php
/**
 * Created by PhpStorm.
 * User: zhongyb
 * Date: 2016/6/6
 * Time: 21:00
 */
namespace common\entities\common;

use common\entities\ConfigEntity;
use Yii;

/**
 * This is the model class for table "myscrm_operlog".
 *
 * @property string $Id
 * @property integer $Type
 * @property string $OrganizationId
 * @property string $Reason
 * @property string $ModifiedOn
 * @property string $VersionNumber
 */
class MyscrmOperlogEntity extends ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_operlog';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['Id', 'Type', 'OrganizationId', 'ModifiedOn', 'VersionNumber'], 'required'],
            [['Type'], 'integer'],
            [['ModifiedOn'], 'safe'],
            [['Id', 'OrganizationId'], 'string', 'max' => 36],
            [['Reason'], 'string', 'max' => 512],
            [['VersionNumber'], 'string', 'max' => 8]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'Id' => 'ID',
            'Type' => 'Type',
            'OrganizationId' => 'Organization ID',
            'Reason' => 'Reason',
            'ModifiedOn' => 'Modified On',
            'VersionNumber' => 'Version Number',
        ];
    }
}